﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Label_add.aspx.cs" Inherits="manage_channel_Label_add" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath());%>/css/css.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
<script type="text/javascript" src="../../editor/fckeditor.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="top1" width="100%"  border="0" cellpadding="0" cellspacing="0" class="toptable">
        <tr>
          <td height="1" colspan="2"></td>
        </tr>
        <tr>
          <td width="57%" class="sysmain_navi" style="padding-left:14px;"><span id="adress"></span>增加/修改标签管理</td>
          <td width="43%">位置导航：<a href="../main.aspx" class="list_link" target="sys_main">首页</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="list.aspx" class="list_link" target="sys_main">频道列表</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="Label_list.aspx?ChID=<%Response.Write(Request.QueryString["ChID"]); %>&ClassID=<%Response.Write(Request.QueryString["ClassID"]); %>" class="list_link" target="sys_main">标签列表</a> </td>
        </tr>
    </table>
    
    <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
      <tr class="TR_BG_list">
        <td style="text-align:right;width:15%">栏目</td>
        <td >
        <asp:DropDownList ID="gClassID" runat="server">
        </asp:DropDownList>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="gClassID" Display="Dynamic" ErrorMessage="<span class='reshow'>请选择栏目</span>"></asp:RequiredFieldValidator>
       </td>
      </tr>
      <tr class="TR_BG_list">
        <td style="text-align:right;">标签名称</td>
        <td >
            <span style="color:Red;font-weight:bold;">{NT_CH$<%Response.Write(Request.QueryString["ChID"]); %>_</span><asp:TextBox ID="LabelName" MaxLength="50" Width="300px" runat="server"></asp:TextBox><span style="color:Red;font-weight:bold;">}</span>
            <asp:RequiredFieldValidator ID="f_LabelName" runat="server" ControlToValidate="LabelName" Display="Dynamic" ErrorMessage="<span class='reshow'>请填写标签名称</span>"></asp:RequiredFieldValidator>
        </td>
      </tr>
      <tr class="TR_BG_list">
        <td style="text-align:right;">标签格式</td>
        <td >
            <label style="padding:2px 5px 2px 5px;cursor:pointer;" onclick="javascript:show_channel('ch_List',document.getElementById('adress'),'创建列表类',700,420,'<%Response.Write(Request.QueryString["ChID"]); %>');">列表类</label>
            <label style="padding:2px 5px 2px 5px;cursor:pointer;" onclick="javascript:show_channel('ch_elist',document.getElementById('adress'),'创建终极类',700,420,'<%Response.Write(Request.QueryString["ChID"]); %>');">终极类</label>
            <label style="padding:2px 5px 2px 5px;cursor:pointer;" onclick="javascript:show_channel('ch_read',document.getElementById('adress'),'创建浏览类',700,420,'<%Response.Write(Request.QueryString["ChID"]); %>');">浏览类</label>                 
        <label style="padding:2px 5px 2px 5px;cursor:pointer;" onclick="javascript:show_channel('ch_other',document.getElementById('adress'),'创建其他类',700,420,'<%Response.Write(Request.QueryString["ChID"]); %>');">其他类</label>                 
     </td>
      </tr>
      
      <tr class="TR_BG_list">
        <td style="text-align:right;">内容</td>
        <td style="height:200px;">

		<textarea rows="10" cols="99" name="GLabelContent" style="padding:5px;line-height:20px;font-size:14px;" id="GLabelContent" runat="server" ></textarea>
        </td>
      </tr>
      
      <tr class="TR_BG_list">
        <td style="text-align:right;">锁定</td>
        <td >
            <asp:CheckBox ID="islock" runat="server" />
        </td>
      </tr>
      <tr class="TR_BG_list">
        <td style="text-align:right;">描述</td>
        <td >
            <asp:TextBox ID="LabelDescript" MaxLength="200" Width="300px" runat="server"></asp:TextBox>
        </td>
      </tr>
        
      <tr class="TR_BG_list">
        <td style="text-align:right;"></td>
        <td >
         <asp:Button ID="Button1" runat="server" Text="保存标签" OnClick="Button1_Click" />
        </td>
      </tr>
      </table> 
    <br />
    <br />
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg" style="height: 76px">
       <tr>
         <td align="center"><label id="copyright" runat="server" /></td>
       </tr>
    </table>
    </form>
</body>
</html>
<script language="javascript" type="text/javascript">
function getValue(value)
{
   document.all.GLabelContent.focus();
   var tarobj = document.selection.createRange();
   tarobj.text = value;
}
</script>